package com.ny.USB;

import com.ny.USB.Keyboard;
import com.ny.USB.Laptop;
import com.ny.USB.Mouse;

public class Test02 {
    public static void main(String[] args) {
        Laptop laptop = new Laptop();
        laptop.run();

        Mouse mouse = new Mouse();
        laptop.useUSB(mouse);

        Keyboard keyboard = new Keyboard();
        laptop.useUSB(keyboard);

        laptop.shutdown();
    }
}
